package com.example.common.exception;

/**
 * 自定义异常
 *
 * @Author 林必昭
 * @Date 2019/7/16 10:00
 */
public class CustomException extends RuntimeException {

    private int code;

    public CustomException() {}

    public CustomException(int code) {
        this.code = code;
    }

    public CustomException(String message) {
        super(message);
    }

    public CustomException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
